function checkStillRun(originData, productionOrderList) {
    const productionOrderMap = new Map()
    for (const item of productionOrderList) {
        if ([2, 7, 8].includes(item.scheduleStatus)) {
            productionOrderMap.set(item['数据ID'])
        }
    }

    const checkData = originData.productionOrder.filter(item => productionOrderMap.has(item['数据ID']))
    // checkData.sort((a, b) => a.deliveryDate > b.deliveryDate ? 1 : -1)
    for (let i = 0; i < checkData.length; i++) {
        const item = checkData[i]
        const scheduleData = productionOrderMap.get(item['数据ID'])
        if (scheduleData.endDate > item.deliveryDate && [2, 8].includes(item.scheduleStatus)) {
            return true
        }
    }

    return false
}

return {
    stillRun: checkStillRun(originData, productionOrderList)
}